package com.bjdd.jdy.ui.order;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.OrderBean;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import java.util.List;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/12.
 */

public class OrderModel implements OrderContract.Model {
    @Override
    public Observable<BaseResult<List<OrderBean>>> orders(String token, String carrierId, int page, int size) {
        return Api.getInstance().service
                .orders(token,carrierId,page,size)
                .compose(RxSchedulers.io_main());
    }
}
